package cn.flant.exec;

import cn.flant.exec.concurrent.Request;

public class PrintRequest extends Request {
	private int id;
	private Object obj;

	public PrintRequest(int id, Object obj) {
		this.id = id;
		this.obj = obj;
	}

	@Override
	public Object getRequestKey() {
		return id;
	}

	public Object getPrintObject() {
		return obj;
	}

	public String toString() {
		return obj.toString();
	}

	public PrintRequest(int id) {
		super();
		this.id = id;
	}

}
